package com.hkzhao.reportingsystem.mbg.model;

import java.util.ArrayList;
import java.util.List;

public class DoctorExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DoctorExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andUsernameIsNull() {
            addCriterion("Username is null");
            return (Criteria) this;
        }

        public Criteria andUsernameIsNotNull() {
            addCriterion("Username is not null");
            return (Criteria) this;
        }

        public Criteria andUsernameEqualTo(String value) {
            addCriterion("Username =", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameNotEqualTo(String value) {
            addCriterion("Username <>", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameGreaterThan(String value) {
            addCriterion("Username >", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameGreaterThanOrEqualTo(String value) {
            addCriterion("Username >=", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameLessThan(String value) {
            addCriterion("Username <", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameLessThanOrEqualTo(String value) {
            addCriterion("Username <=", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameLike(String value) {
            addCriterion("Username like", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameNotLike(String value) {
            addCriterion("Username not like", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameIn(List<String> values) {
            addCriterion("Username in", values, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameNotIn(List<String> values) {
            addCriterion("Username not in", values, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameBetween(String value1, String value2) {
            addCriterion("Username between", value1, value2, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameNotBetween(String value1, String value2) {
            addCriterion("Username not between", value1, value2, "username");
            return (Criteria) this;
        }

        public Criteria andDoctorTokenIdIsNull() {
            addCriterion("Doctor_token_id is null");
            return (Criteria) this;
        }

        public Criteria andDoctorTokenIdIsNotNull() {
            addCriterion("Doctor_token_id is not null");
            return (Criteria) this;
        }

        public Criteria andDoctorTokenIdEqualTo(String value) {
            addCriterion("Doctor_token_id =", value, "doctorTokenId");
            return (Criteria) this;
        }

        public Criteria andDoctorTokenIdNotEqualTo(String value) {
            addCriterion("Doctor_token_id <>", value, "doctorTokenId");
            return (Criteria) this;
        }

        public Criteria andDoctorTokenIdGreaterThan(String value) {
            addCriterion("Doctor_token_id >", value, "doctorTokenId");
            return (Criteria) this;
        }

        public Criteria andDoctorTokenIdGreaterThanOrEqualTo(String value) {
            addCriterion("Doctor_token_id >=", value, "doctorTokenId");
            return (Criteria) this;
        }

        public Criteria andDoctorTokenIdLessThan(String value) {
            addCriterion("Doctor_token_id <", value, "doctorTokenId");
            return (Criteria) this;
        }

        public Criteria andDoctorTokenIdLessThanOrEqualTo(String value) {
            addCriterion("Doctor_token_id <=", value, "doctorTokenId");
            return (Criteria) this;
        }

        public Criteria andDoctorTokenIdLike(String value) {
            addCriterion("Doctor_token_id like", value, "doctorTokenId");
            return (Criteria) this;
        }

        public Criteria andDoctorTokenIdNotLike(String value) {
            addCriterion("Doctor_token_id not like", value, "doctorTokenId");
            return (Criteria) this;
        }

        public Criteria andDoctorTokenIdIn(List<String> values) {
            addCriterion("Doctor_token_id in", values, "doctorTokenId");
            return (Criteria) this;
        }

        public Criteria andDoctorTokenIdNotIn(List<String> values) {
            addCriterion("Doctor_token_id not in", values, "doctorTokenId");
            return (Criteria) this;
        }

        public Criteria andDoctorTokenIdBetween(String value1, String value2) {
            addCriterion("Doctor_token_id between", value1, value2, "doctorTokenId");
            return (Criteria) this;
        }

        public Criteria andDoctorTokenIdNotBetween(String value1, String value2) {
            addCriterion("Doctor_token_id not between", value1, value2, "doctorTokenId");
            return (Criteria) this;
        }

        public Criteria andWokerIdIsNull() {
            addCriterion("Woker_id is null");
            return (Criteria) this;
        }

        public Criteria andWokerIdIsNotNull() {
            addCriterion("Woker_id is not null");
            return (Criteria) this;
        }

        public Criteria andWokerIdEqualTo(String value) {
            addCriterion("Woker_id =", value, "wokerId");
            return (Criteria) this;
        }

        public Criteria andWokerIdNotEqualTo(String value) {
            addCriterion("Woker_id <>", value, "wokerId");
            return (Criteria) this;
        }

        public Criteria andWokerIdGreaterThan(String value) {
            addCriterion("Woker_id >", value, "wokerId");
            return (Criteria) this;
        }

        public Criteria andWokerIdGreaterThanOrEqualTo(String value) {
            addCriterion("Woker_id >=", value, "wokerId");
            return (Criteria) this;
        }

        public Criteria andWokerIdLessThan(String value) {
            addCriterion("Woker_id <", value, "wokerId");
            return (Criteria) this;
        }

        public Criteria andWokerIdLessThanOrEqualTo(String value) {
            addCriterion("Woker_id <=", value, "wokerId");
            return (Criteria) this;
        }

        public Criteria andWokerIdLike(String value) {
            addCriterion("Woker_id like", value, "wokerId");
            return (Criteria) this;
        }

        public Criteria andWokerIdNotLike(String value) {
            addCriterion("Woker_id not like", value, "wokerId");
            return (Criteria) this;
        }

        public Criteria andWokerIdIn(List<String> values) {
            addCriterion("Woker_id in", values, "wokerId");
            return (Criteria) this;
        }

        public Criteria andWokerIdNotIn(List<String> values) {
            addCriterion("Woker_id not in", values, "wokerId");
            return (Criteria) this;
        }

        public Criteria andWokerIdBetween(String value1, String value2) {
            addCriterion("Woker_id between", value1, value2, "wokerId");
            return (Criteria) this;
        }

        public Criteria andWokerIdNotBetween(String value1, String value2) {
            addCriterion("Woker_id not between", value1, value2, "wokerId");
            return (Criteria) this;
        }

        public Criteria andIdentifyIdIsNull() {
            addCriterion("Identify_id is null");
            return (Criteria) this;
        }

        public Criteria andIdentifyIdIsNotNull() {
            addCriterion("Identify_id is not null");
            return (Criteria) this;
        }

        public Criteria andIdentifyIdEqualTo(String value) {
            addCriterion("Identify_id =", value, "identifyId");
            return (Criteria) this;
        }

        public Criteria andIdentifyIdNotEqualTo(String value) {
            addCriterion("Identify_id <>", value, "identifyId");
            return (Criteria) this;
        }

        public Criteria andIdentifyIdGreaterThan(String value) {
            addCriterion("Identify_id >", value, "identifyId");
            return (Criteria) this;
        }

        public Criteria andIdentifyIdGreaterThanOrEqualTo(String value) {
            addCriterion("Identify_id >=", value, "identifyId");
            return (Criteria) this;
        }

        public Criteria andIdentifyIdLessThan(String value) {
            addCriterion("Identify_id <", value, "identifyId");
            return (Criteria) this;
        }

        public Criteria andIdentifyIdLessThanOrEqualTo(String value) {
            addCriterion("Identify_id <=", value, "identifyId");
            return (Criteria) this;
        }

        public Criteria andIdentifyIdLike(String value) {
            addCriterion("Identify_id like", value, "identifyId");
            return (Criteria) this;
        }

        public Criteria andIdentifyIdNotLike(String value) {
            addCriterion("Identify_id not like", value, "identifyId");
            return (Criteria) this;
        }

        public Criteria andIdentifyIdIn(List<String> values) {
            addCriterion("Identify_id in", values, "identifyId");
            return (Criteria) this;
        }

        public Criteria andIdentifyIdNotIn(List<String> values) {
            addCriterion("Identify_id not in", values, "identifyId");
            return (Criteria) this;
        }

        public Criteria andIdentifyIdBetween(String value1, String value2) {
            addCriterion("Identify_id between", value1, value2, "identifyId");
            return (Criteria) this;
        }

        public Criteria andIdentifyIdNotBetween(String value1, String value2) {
            addCriterion("Identify_id not between", value1, value2, "identifyId");
            return (Criteria) this;
        }

        public Criteria andDoctorTypeIsNull() {
            addCriterion("Doctor_type is null");
            return (Criteria) this;
        }

        public Criteria andDoctorTypeIsNotNull() {
            addCriterion("Doctor_type is not null");
            return (Criteria) this;
        }

        public Criteria andDoctorTypeEqualTo(String value) {
            addCriterion("Doctor_type =", value, "doctorType");
            return (Criteria) this;
        }

        public Criteria andDoctorTypeNotEqualTo(String value) {
            addCriterion("Doctor_type <>", value, "doctorType");
            return (Criteria) this;
        }

        public Criteria andDoctorTypeGreaterThan(String value) {
            addCriterion("Doctor_type >", value, "doctorType");
            return (Criteria) this;
        }

        public Criteria andDoctorTypeGreaterThanOrEqualTo(String value) {
            addCriterion("Doctor_type >=", value, "doctorType");
            return (Criteria) this;
        }

        public Criteria andDoctorTypeLessThan(String value) {
            addCriterion("Doctor_type <", value, "doctorType");
            return (Criteria) this;
        }

        public Criteria andDoctorTypeLessThanOrEqualTo(String value) {
            addCriterion("Doctor_type <=", value, "doctorType");
            return (Criteria) this;
        }

        public Criteria andDoctorTypeLike(String value) {
            addCriterion("Doctor_type like", value, "doctorType");
            return (Criteria) this;
        }

        public Criteria andDoctorTypeNotLike(String value) {
            addCriterion("Doctor_type not like", value, "doctorType");
            return (Criteria) this;
        }

        public Criteria andDoctorTypeIn(List<String> values) {
            addCriterion("Doctor_type in", values, "doctorType");
            return (Criteria) this;
        }

        public Criteria andDoctorTypeNotIn(List<String> values) {
            addCriterion("Doctor_type not in", values, "doctorType");
            return (Criteria) this;
        }

        public Criteria andDoctorTypeBetween(String value1, String value2) {
            addCriterion("Doctor_type between", value1, value2, "doctorType");
            return (Criteria) this;
        }

        public Criteria andDoctorTypeNotBetween(String value1, String value2) {
            addCriterion("Doctor_type not between", value1, value2, "doctorType");
            return (Criteria) this;
        }

        public Criteria andProvinceIsNull() {
            addCriterion("Province is null");
            return (Criteria) this;
        }

        public Criteria andProvinceIsNotNull() {
            addCriterion("Province is not null");
            return (Criteria) this;
        }

        public Criteria andProvinceEqualTo(String value) {
            addCriterion("Province =", value, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceNotEqualTo(String value) {
            addCriterion("Province <>", value, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceGreaterThan(String value) {
            addCriterion("Province >", value, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceGreaterThanOrEqualTo(String value) {
            addCriterion("Province >=", value, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceLessThan(String value) {
            addCriterion("Province <", value, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceLessThanOrEqualTo(String value) {
            addCriterion("Province <=", value, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceLike(String value) {
            addCriterion("Province like", value, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceNotLike(String value) {
            addCriterion("Province not like", value, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceIn(List<String> values) {
            addCriterion("Province in", values, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceNotIn(List<String> values) {
            addCriterion("Province not in", values, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceBetween(String value1, String value2) {
            addCriterion("Province between", value1, value2, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceNotBetween(String value1, String value2) {
            addCriterion("Province not between", value1, value2, "province");
            return (Criteria) this;
        }

        public Criteria andPasswordIsNull() {
            addCriterion("Password is null");
            return (Criteria) this;
        }

        public Criteria andPasswordIsNotNull() {
            addCriterion("Password is not null");
            return (Criteria) this;
        }

        public Criteria andPasswordEqualTo(String value) {
            addCriterion("Password =", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordNotEqualTo(String value) {
            addCriterion("Password <>", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordGreaterThan(String value) {
            addCriterion("Password >", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordGreaterThanOrEqualTo(String value) {
            addCriterion("Password >=", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordLessThan(String value) {
            addCriterion("Password <", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordLessThanOrEqualTo(String value) {
            addCriterion("Password <=", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordLike(String value) {
            addCriterion("Password like", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordNotLike(String value) {
            addCriterion("Password not like", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordIn(List<String> values) {
            addCriterion("Password in", values, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordNotIn(List<String> values) {
            addCriterion("Password not in", values, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordBetween(String value1, String value2) {
            addCriterion("Password between", value1, value2, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordNotBetween(String value1, String value2) {
            addCriterion("Password not between", value1, value2, "password");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("Status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("Status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("Status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("Status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("Status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("Status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("Status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("Status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("Status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("Status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("Status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("Status not between", value1, value2, "status");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}